home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac Format 1995 June
/
MacFormat 25.iso
/
Shareware City
/
Developers
/
fortran-to-c-translator-11
/
Mac F2C 1.1
/
Mac F2C Documentation
/
Mac F2C & UNIX f2c
< prev
next >
Wrap
Text File
|
1994-12-15
|
2KB
|
49 lines
************************************************
************************************************
Mac F2C COMPATIBILITY WITH UNIX f2c
************************************************
************************************************
This version of Mac F2C is based on the UNIX f2c version of 13 Nov 1994.
The UNIX f2c version is maintained and updated on a semi-regular basis. I
plan to update Mac F2C about once a year to incorporate all changes that
have been made to the UNIX version during the past year. I may release
interim versions at shorter intervals as required to fix significant bugs.
The C code produced by Mac F2C is identical to that produced by UNIX f2c
when f2c is run with the same options. The option switches fed by Mac
F2C to the f2c kernel appear in the status window, so you can replicate a
Mac F2C translation with UNIX f2c by using precisely those switches.
The support libraries, libI77 and libF77, and the file main.c have been
modified to work correctly on the Macintosh. The modifications are
required to allow the source code to compile under THINK C and CodeWarrior,
adapt the code to the MacOS file and path naming requirements, and provide
minimal Macintosh interface (via the console libraries provided by THINK C
and CodeWarrior). All of these changes have been implemented using
#ifdef/#endif constructions conditioned on macros pre-defined by the THINK
and MetroWerks compilers. If you move the Mac F2C support code to a UNIX
machine (or any machine other than a Macintosh), the code automatically
reverts to the UNIX f2c original version when preprocessed by the C
compiler.
The bottom-line is that you can move code produced by Mac F2C to any
other machine and have it work identically (except for the usual machine
dependencies in integer size, floating point accuracy, etc.). You can
move the support libraries and main.c distributed with Mac F2C to any
other computer and it will work just like the original f2c stuff when
compiled on that machine (and identically to way they work on the
Macintosh except for some differences in the user-interface and the usual
machine dependencies).
What you _cannot_ do is take the UNIX f2c support libraries and/or
main.c, move them to the Macintosh, and expect them to work. The f2c
material must be modified to (a) compile and (b) work correctly with
THINK C or MetroWerk C.